//全局样式
@import "../assets/icon/iconfont.css";

.main {
  padding: 20px;
}

.el-image-viewer__wrapper {
  z-index: 2002 !important;
}

.flex-c-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-c-fs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-fs-fs {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

body {
  font-size: 16px;
  color: #606266;

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background-color: rgba(69, 90, 100, 0.2);
    border-radius: 10px;

    &:active, &:hover {
      background: #a3a3a3;
    }
  }
}

.my_scrollbar {
  &::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: transparent;
  }

  &:hover::-webkit-scrollbar-thumb {
    background-color: rgba(69, 90, 100, 0.2);
  }

  &::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
  }
}

.el-dialog__body {
  max-height: 50vh;
  overflow-y: scroll;
}

.el-popover + .el-button, span .el-button {
  margin-left: 10px;
}

.el-form-item--small .el-form-item__label {
  font-size: 13px;
}

.el-form-item--mini .el-form-item__label {
  font-size: 12px;
}


.el-form-item {
  .el-select {
    width: 100%;
  }
}

.select-popper {
  padding: 0;

  .list-wrapper {
    max-height: 250px;
    overflow-y: scroll;

    p {
      text-align: center;
      font-size: 12px;
      color: #999999;
    }
  }

  .item {
    font-size: 14px;
    padding: 0 20px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #606266;
    height: 34px;
    line-height: 34px;
    box-sizing: border-box;
    cursor: pointer;

    &:hover {
      background-color: #f5f7fa;
    }

    &.selected {
      color: #409eff;
      font-weight: 700;
    }
  }
}

.tip {
  font-size: 12px;
  margin-right: 10px;
  color: #999;
  clear: both;
}

/* 单行超出省略号 */
.line-clamp-1 {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* 两行超出省略号 */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}
